package com.study.simplefactory.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @ClassName: BeanConfig
 * @Description:
 * @Details:
 * @Author: 郑港旭
 * @Create: 2021-11-12 09:44
 **/
@Configuration
public class BeanConfig {
    @Bean(name = "myBean")
    public Map<String, Object> myBean(){
        return new ConcurrentHashMap<String, Object>();
    }
}
